package com.showcai.controller.reservation;

import com.showcai.controller.base.WeChatBaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Baggio on 2018-1-25.
 */
@RequestMapping("/reservation")
@Controller
public class ReservationController extends WeChatBaseController {

    @RequestMapping(value = "/index")
    public ModelAndView index() {
        ModelAndView mov = new ModelAndView();
        String views = "reservation/web/index";
        if (getIsMobile()) {
            views = "reservation/wap/index";
        }
        mov.setViewName(views);
        return mov;
    }

    @RequestMapping(value = "/reservation")
    public ModelAndView apply() {
        ModelAndView mov = new ModelAndView();
        String views = "reservation/web/suscc";
        if (getIsMobile()) {
            views = "reservation/wap/suscc";
        }

        mov.setViewName(views);
        return mov;
    }

    @RequestMapping(value = "/suscc")
    public ModelAndView suscc() {
        ModelAndView mov = new ModelAndView();
        String views = "reservation/web/suscc";
        if (getIsMobile()) {
            views = "reservation/wap/suscc";
        }
        mov.setViewName(views);
        return mov;
    }



}
